$OpenBSD: patch-src_query_c,v 1.1 2008/07/18 14:29:42 naddy Exp $
--- src/query.c.orig	Sat Apr 19 15:17:23 2008
+++ src/query.c	Fri Jul  4 10:18:56 2008
@@ -577,7 +577,7 @@ static int string_query(query_node_t* query, void* tar
 	}
 	
     case qot_contains:
-	return (int) strcasestr(ts, query->right.str); /* returns null if not found */
+	return !!strcasestr(ts, query->right.str); /* returns null if not found */
 
     default:
 	DPRINTF(E_LOG,L_QRY,"Illegal query type: %d\n", query->type);
